package com.example.gokchinesefoodmappcdev.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.gokchinesefoodmappcdev.entity.GoodsInfo;
import com.example.gokchinesefoodmappcdev.entity.GoodsPic;
import com.example.gokchinesefoodmappcdev.entity.dto.GoodsDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;
@Mapper
public interface GoodsPicDao extends BaseMapper<GoodsPic> {


    int insertGoodsPic(@Param("goodId") Integer goodId, @Param("picPath") String picPath);

    int selectIdByGoodIdAndSkuPath(@RequestParam("goodId")Integer goodId,@RequestParam("skuPath") String skuPath);

    int updatePicInfoByIdAndPicPath(@RequestParam("goodId")int goodId,@RequestParam("picPath") String picPath);
}
